{if $params.action=="index"}
	
	{if $Acl.mvc.control.gbooks.add}
		<p><a href="{$view->siteUrl()}/control/gbooks/add/" class="ui-button ui-button-text-icons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-plusthick"></span><span class="ui-button-text">{_('Добавить')} {_('гостевую книгу')}</span></a></p>
	{/if}

	{$ResourceDataTable}

{/if}


{if $params.action=="add" || $params.action=="edit"}
	{$Form}
{/if}


{if $params.action=="entries"}

	<p><a href="{$view->siteUrl()}/control/gbooks/" class="ui-button ui-button-text-icons ui-state-default ui-corner-all"><span class="ui-icon ui-icon-document"></span><span class="ui-button-text">{_('Список')} {_('гостевых книг')}</span></a></p>

	{$EntriesDataTable}

{/if}